      <section id="content">
        <div class="content-left">
          <h2>Administrace</h2>
          <script>
            $(function() {
              $( "#dialog-confirm" ).hide();
            });
             function photoDelete(id) {
                $( "#dialog-confirm" ).dialog({
                  resizable: false,
                  width: 400,
                  minHeight: 40,
                  modal: true,
                  draggable: false,
                  closeOnEscape: true,
                  open: function(event, ui) { $(".ui-dialog-titlebar-close,.ui-dialog-titlebar").remove(); },
                  buttons: {
                    "Odstranit": function() {
                      window.location.replace("/photo/delete/"+id);
                    },
                    "Zavřít": function() {
                      $( this ).dialog( "close" );
                    }
                  }
                });
              }
          </script>
          <div id="dialog-confirm">
            <p>Skutečně chcete tuto fotografii odtranit?</p>
          </div>
          <ul class="menu">
            <li><a href="<?php echo url::base(); ?>administration" title="">Úvodní stránka</a></li>
            <li class="active"><a href="<?php echo url::base(); ?>administration/gallery" title="">Galerie</a></li>
            <li><a href="<?php echo url::base(); ?>administration/articles" title="">Články</a></li>
            <li><a href="<?php echo url::base(); ?>administration/users" title="">Uživatelé</a></li>
            <li><a href="<?php echo url::base(); ?>administration/blogs" title="">Blogy</a></li>
            <li><a href="<?php echo url::base(); ?>administration/discussions" title="">Diskuze</a></li>
            <li><a href="<?php echo url::base(); ?>administration/stats" title="">Statistiky</a></li>
          </ul>
          <div class="content-left-bottom menu-left-bottom"></div>
        </div>
        <div class="content-right">
          <header>
            <h2>Galerie</h2>
          </header>
          <section>
            <?php foreach ($photo_user as $item): ?>
            <div class="content-right-item">
              <?php echo $item->username.' - '.$item->title; ?> <span class="text-gray">(id <?php echo $item->id; ?>)</span><span class="content-right-tools"><a href="javascript:photoDelete('<?php echo $item->id; ?>');" title="Smazat fotografii">smazat</a></span>
            </div>
            <?php endforeach ?>
          </section>
          <div class="content-right-bottom"></div>
        </div>                          	   	
      </section>